<script setup>
const counter = ref(0)

const add = () => {
  counter.value++
}
</script>

<template>
  <el-button @click="add">点击</el-button>
  <span>{{ counter }}</span>
</template>
